package com.dlwx.firefighting.adapter;

import android.content.Context;
import android.widget.TextView;

import com.dlwx.firefighting.R;
import com.dlwx.firefighting.bean.GoodsDetailBean;

/**
 * Created by Administrator on 2017/8/31.
 */

public class GoodsAttrAdapter extends ListBaseAdapter<GoodsDetailBean.GoodsAttrBean> {
    private Context context;
    public GoodsAttrAdapter(Context context) {
        super(context);
        this.context=context;
    }

    @Override
    public int getLayoutId() {
        return R.layout.item_text;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        GoodsDetailBean.GoodsAttrBean bean=getDataList().get(position);
        TextView contentTv=holder.getView(R.id.content);
        contentTv.setText(bean.getName()+":"+bean.getValues().get(0).getLabel());
    }
}
